

export default {
  data () {
    return {
      now: {
        date: new Date(),
        st: null
      },
      DcSize: {
        height: 0,
        width: 0
      },
    }
  },
  created () {
    this.DcSize.height = document.documentElement.clientHeight
    this.DcSize.width = document.documentElement.clientWidth
    window.addEventListener('resize' , () => {
      this.DcSize.height = document.documentElement.clientHeight
      this.DcSize.width = document.documentElement.clientWidth
    })
    this.now.st = setInterval(()=>{
      this.now.date = new Date()
    },1000)
  },
  destroyed () {
    clearInterval(this.now.st)
  },
  methods: {
    handleImgError(e){
    },
    linkToPath(url){
      window.location.href = url
    },
  },
  computed: {
  }
}


